package cn.stu.projectsummit.school.mapper;

import cn.stu.projectsummit.school.pojo.dto.SchoolQuery;
import cn.stu.projectsummit.school.pojo.dto.SchoolSaveParam;
import cn.stu.projectsummit.school.pojo.entity.School;
import cn.stu.projectsummit.school.pojo.vo.SchoolVO;
import cn.stu.projectsummit.school.pojo.dto.SchoolSearch;
import cn.stu.projectsummit.school.pojo.entity.School;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SchoolMapper {
    String selectSchoolNameById(Long schoolId);

    boolean selectSchoolByName(String schoolName);


    void insert(SchoolSaveParam schoolSaveParam);

    Long selectSchoolIdByName(String schoolName);

    List<SchoolVO> selectSchool(SchoolQuery schoolQuery);


    void updateSchool(SchoolSaveParam schoolSaveParam);

    void deleteSchool(Long id);

    List<SchoolVO> selectSchool(SchoolSearch schoolSearch);
}
